export const loadingSet = (prevState = {
    loading: false
}, action) => {
    const { type, payload } = action
    switch (type) {
        case 'change_loading':
            let newState = { ...prevState }
            newState.loading = payload
            return newState
        default:
            return prevState
    }

}